<?php
$table = $this->uri->segment(3,0);
$url_ajax = base_url().'admin/ajax_field/order';
$url_ajax_sotrang = base_url().'admin/ajax_field/num';
$url_ajax_pub = base_url().'admin/ajax_field/pub/'.$table;
$url_ajax_where = base_url().'admin/ajax_field/where/'.$table;
?>
<div id="main-content">
    <div class="container">
    	<div class="row">
    		<div id="content" class="col-lg-12">
    			<!-- PAGE HEADER-->
                    <div class="row">
							<div class="col-sm-12">
								<div class="page-header">
									<div class="clearfix">
										<h3 class="content-title pull-left">Quản lí trợ giúp</h3>
									</div>
								</div>
							</div>
					</div>
                <!-- /PAGE HEADER -->
                <div class="row">
            	<div class="col-md-12">
            		<!-- BOX -->
            		<div class="box border green">
            			<div class="box-title">
            				<h4>
            					<i class="fa fa-reorder">
            					</i>
            					Click Vào Câu Hỏi Để Xem Chi Tiết
            				</h4>
            			</div>
            			<div class="box-body">
            				<div class="panel-group" id="accordion">
            					<?php if(!empty($data)) $i=0; {foreach ($data as $data): $i++; ?>
                                <div class="panel panel-default">
            						<div class="panel-heading">
            							<h3 class="panel-title">
            								<a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#accordion" href="#collapseOne-<?php echo $i; ?>"><?php echo $data->question; ?></a>
            							</h3>
            						</div>
            						<div id="collapseOne-<?php echo $i; ?>" class="panel-collapse collapse" style="height: 0px;">
            							<div class="panel-body">
                                            <a href="<?php echo base_url().'admin/xuly/faq/edit/'.$data->id; ?>" class="btn btn-info"><i class="fa fa-edit"></i>&nbsp;&nbsp;Sửa</a>
            								<?php echo $data->reply; ?>
            							</div>
            						</div>
            					</div>
                                <?php endforeach;} ?>
                                <a href="<?php echo base_url().'admin/xuly/faq/edit'; ?>" class="btn btn-danger" style="margin-top:15px;" title="Thêm mới"><i class="fa fa-edit"></i>&nbsp;&nbsp;&nbsp;Thêm mới</a>
            				</div>
                            <div class="row">
                               <div class="col-sm-12">
                                  <div class="pull-right">
                                           <?php echo $this->pagination->create_links();?>
                                  </div>
                                  <div class="clearfix"></div>
                               </div>
                            </div>
            			</div>
            		</div>
            		<!-- /BOX -->
            	</div>
            </div>
   			</div>
    		</div>
    	</div>
</div>